Tag Link | [RegExp->GroupCount] | Category | String |
---|---|---|---|
Type | Member | Source Available | Yes |
Support | Preferred | Version | 8.5 |
Change | New | Data Source | Any |
Output Type | Integer | Security | None |
Implementation | Sets | Lasso 8.5 |
[RegExp->GroupCount] returns the number of groups which are specified in the current find pattern. Groups are specified using parentheses () within the find pattern and can be referenced using \\1, \\2, etc. within the replacement pattern or using the [RegExp->MatchString] or [RegExp->MatchPosition] tags.
[Var: 'myRegExp' = (RegExp:
[$myRegexp->FindPattern]
[$myRegexp->GroupCount]
[$myRegexp->ReplacePattern]
[$myRegexp->Input]
[$myRegexp->IgnoreCase]
No Parameters Required.
See the Lasso 8 Language Guide for examples of how to use this tag.